#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

typedef int HPDataType;
typedef struct Heap
{
	HPDataType* a;
	int size;
	int capacity;
}HP;

void HeapInit(HP* hp);
void HeapDestory(HP* hp);

void HeapPush(HP* hp, HPDataType x);
void HeapPop(HP* hp);

HPDataType HeapTop(HP* hp);
void HeapSize(HP* hp);
bool HPEmpty(HP* hp);